package c.h.a.a0;

import android.app.Activity;
import android.os.Build;
import c.h.a.l0.a;
import com.huawei.hms.jos.AppUpdateClient;
import com.huawei.hms.jos.JosApps;

/* compiled from: ChannelServer */
public final class b implements a {
    public void a(Activity activity) {
        String str = Build.MANUFACTURER;
        Object obj = 1;
        if (!("huawei".equalsIgnoreCase(str) || "honor".equalsIgnoreCase(str))) {
            obj = null;
        }
        if (obj != null) {
            c.h.b.c.b.b bVar = new c.h.b.c.b.b();
            JosApps.getJosAppsClient(activity).init();
            AppUpdateClient appUpdateClient = JosApps.getAppUpdateClient(activity);
            appUpdateClient.checkAppUpdate(activity, new c.h.b.c.b.a(bVar, appUpdateClient, activity));
        }
    }
}
